<?php
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

class logs_html {
    function showQuestions($object){
        ?>
        <form method="post" action="index.php">
        <table>
        <?php if ($object->question1): ?>
        <tr>
            <td>
        <label for="question1"><?php echo $object->question1; ?>*</label>
            </td>
            <td>
        <input type="text" name="question1" />
            </td>
        </tr>
        <?php endif; ?>
        <?php if ($object->question2): ?>
        <tr>
            <td>
        <label for="question2"><?php echo $object->question2; ?>*</label>
            </td>
            <td>
        <input type="text" name="question2" />
            </td>
        </tr>
        <?php endif; ?>
        <?php if ($object->question3): ?>
        <tr>
            <td>
        <label for="question2"><?php echo $object->question3; ?>*</label>
            </td>
            <td>
        <input type="text" name="question3" />
            </td>
        </tr>
        <?php endif; ?>
        </table>
        <input type="hidden" name="resource" value="<?php echo $object->resource; ?>" />
        <input type="hidden" name="option" value="com_logs" />
        <input type="submit" value="Next"/>
        </form>
        <div>* All the fields are required</div>
        <?php
    }
}
?>